#ifndef __UTILS_H__
#define __UTILS_H__
#include <stdio.h>
#include <stdint.h>

#define TYPE_OF(x) _Generic((x), \
    char: "char",   \
    long: "long",   \
    unsigned long: "unsigned long",\
    int8_t: "int8_t",\
    uint8_t: "uint8_t",\
    int16_t: "int16_t",\
    uint16_t: "uint16_t",\
    int32_t: "int32_t",\
    uint32_t: "uint32_t",\
    int64_t: "int64_t",\
    uint64_t: "uint64_t",\
    float: "float",\
    double: "double", \
    default: "unknown")


#endif /* __UTILS_H__ */